package com.zhang.string;

import java.util.Arrays;
import java.util.Stack;

/**
 * @author zhang
 * @time 2022/01/12 16:25:00
 */
public class Test {
    public static void main(String[] args) {
        String s = " trees are        beautiful";
        System.out.println(Arrays.toString(s.trim().split(" +")));



    }
}
